﻿namespace DotRas.Design
{
    using DotRas;
    using System;

    public abstract class RasOwnedCollection<TOwner, TObject> : RasCollection<TObject> where TOwner: class where TObject: class
    {
        private TOwner _owner;

        protected RasOwnedCollection(TOwner owner)
        {
            if (owner == null)
            {
                DotRas.ThrowHelper.ThrowArgumentNullException("owner");
            }
            this._owner = owner;
        }

        protected TOwner Owner
        {
            get
            {
                return this._owner;
            }
        }
    }
}

